package com.example.network.service.impl;

import com.example.network.mapper.TimeMapper;
import com.example.network.service.TimeService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class TimeServiceImpl implements TimeService {
    @Resource
    private TimeMapper timeMapper;
    /**
     * 记录用户的使用数据
     * @param email
     * @param time
     * @param status
     */
    @Override
    public void insertTime(String email, String time, String status) {
        timeMapper.insertTime(email,time,status);
    }

    @Override
    public void deleteByAll() {
        timeMapper.deleteByAll();
    }
}
